package com.jzo2o.foundations.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzo2o.api.foundations.dto.response.ServeAggregationResDTO;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.dto.response.ServeAggregationSimpleResDTO;
import com.jzo2o.foundations.model.dto.response.ServeAggregationTypeSimpleResDTO;
import com.jzo2o.foundations.model.dto.response.ServeCategoryResDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author itcast
 * @since 2023-07-03
 */
public interface ServeMapper extends BaseMapper<Serve> {
    /**
     * 区域服务分页查询
     * @param regionId 区域id
     * @return 区域服务信息
     */
    List<ServeResDTO> queryServePage(Long regionId);

    /**
     *
     * @param regionId
     * @return
     */
    List<ServeCategoryResDTO> fiandServeList(Long regionId);

    /**
     * 精选推荐列表
     * @param regionId 区域id
     * @return 精选推荐列表
     */
    List<ServeAggregationSimpleResDTO> findHotServeList(Long regionId);

    /**
     *  查询服务详情
     * @param id 服务id
     * @return 查询服务详情
     */
    ServeAggregationSimpleResDTO serveDetails(Long id);

    /**
     * 查询当前区域下上架服务对应的分类
     * @param regionId 区域id
     * @return 服务对应的分类
     */
    List<ServeAggregationTypeSimpleResDTO> serveTypeList(Long regionId);
}
